package bueu.bexl;

abstract class WithNextExpr extends BexlExpr {

	private final BexlExpr next;

	public WithNextExpr(final boolean relative, final BexlExpr next) {
		super(relative || (next == null? false : next.isRelative()));
		this.next = next;
	}

	protected final BexlExpr getNext() {
		return this.next;
	}
}
